var lpgridusername=null;function window_load(D,B){lpgridusername=(typeof(B.arguments)!="undefined"&&B.arguments.length>0&&typeof(B.arguments[0])!="undefined"&&typeof(B.arguments[0].username)!="undefined")?B.arguments[0].username:null;D.title=LP.lpgs("LastPass Grid Multifactor Authentication");LP.sr(D,"lpgrid1","value","For each coordinate listed below, find the value on your grid and enter the value.");
LP.sr(D,"lpgridinput1","value","");LP.sr(D,"lpgridinput2","value","");LP.sr(D,"lpgridinput3","value","");LP.sr(D,"lpgridinput4","value","");LP.sr(D,"lpbutton","label","Authenticate");LP.sr(D,"lpgridlost","value","If you lost your grid, click here to disable grid authentication");LP.sr(D,"lptrust","label","This computer is trusted, do not require a second form of authentication.");
LP.sr(D,"lplabeltext","value","Please provide this computer a name");D.getElementById("lpgridinput1").focus();if(typeof(B.arguments[0].challenge)=="string"){var A=B.arguments[0].challenge.split(" ");for(var C=0;C<A.length;C++){LP.sr(D,"grid"+(C+1)+"label","value",A[C])}}if(B.arguments[0].username==null){D.getElementById("lpgridlost").style.display="none"
}}function lpgridaccept(B,A){if(B.getElementById("lptrust").checked){if(B.getElementById("trustlabel").value==""){LP.alert(LP.lpgs("Please provide this computer a name"));return false}else{if(typeof(A.arguments)!="undefined"&&A.arguments.length>0){A.arguments[0].label=B.getElementById("trustlabel").value